package com.huawei.cloud.phone.management.common.security;

public class EncryptionServiceFactory {
    private static final EncryptionService md5EncryptionService = new Md5EncryptionServiceImpl();

    private static final EncryptionService aesEncryptionService = new AesEncryptionServiceImpl();

    /**
     * 获取MD5加密对象
     *
     * @return 加密对象
     */
    public static EncryptionService getMd5Service() {
        return md5EncryptionService;
    }

    /**
     * 获取MD5加密对象
     *
     * @return 加密对象
     */
    public static EncryptionService getAesService() {
        return aesEncryptionService;
    }
}
